package com.hexinfo.dmpro.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 */
@Data
@TableName("t_test")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "测试实体类")
public class Test extends Model<Test> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(type= IdType.ASSIGN_UUID)
    @ApiModelProperty(value="主键ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;


    /**
     * 名字集合
     */
    @ApiModelProperty(value="名字集合")
    private String names;
}
